package com.chendx.store.search.service;

import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.model.search.dto.SearchDto;

import java.util.Map;

/**
 * Created by chendx on 2022/4/18.
 */
public interface SearchService{


    ResponseResult indexAllSearch();

    /**
     * 查询
     * @param searchMap
     * @return
     */
    ResponseResult search(Map<String, String> searchMap);

    /**
     * 更新
     * @param dto
     * @return
     */
    ResponseResult update(SearchDto dto);

    /**
     * 新增一条数据
     * @param skuId
     */
    void indexSearch(String skuId);
}
